clear all;

load('PA.mat');
load('PB.mat');
load('PC.mat');

year=86:1:96;
fig=figure('color', [1 1 1 ], 'Position',[200 20 1200 320]);

ah1 = axes('Parent',fig,'Units','normalized','Position',[0.1300 0.1500 0.2134 0.7800]);
plot(year, labor_growth(1:11).*0.67.*100, '-b' , 'LineWidth', 2 );
hold on
plot(year, capital_growth(1:11).*0.33.*100, '--k' , 'LineWidth', 2 );
hold on
plot(year, TFP_growth(1:11).*100, '-.r' , 'LineWidth', 2 );
ylim([0,15])
title( 'A. Growth accounting by factor', 'FontSize',15,'Interpreter','Latex');
xlabel('year', 'FontSize',12,'Interpreter','Latex');
ylabel('percent change in GDP (\%)', 'FontSize',12,'Interpreter','Latex');
xlim([86 96]);
legend('labor','capital','TFP','interpreter','latex','location','northwest')
set(gca,'FontSize',12);
 
 

ah2 = axes('Parent',fig,'Units','normalized','Position',[0.4108 0.1500 0.2134 0.7800]);
plot(year, extensive.*100, '-b' , 'LineWidth', 2 );
hold on
plot(year, intensive.*100, '--k' , 'LineWidth', 2 );
hold on
plot(year, GE.*100, '-.r' , 'LineWidth', 2 );

title( 'B. Growth accounting by credit regime', 'FontSize',15,'Interpreter','Latex');
xlabel('year', 'FontSize',12,'Interpreter','Latex');
ylabel('percent change in GDP (\%)', 'FontSize',12,'Interpreter','Latex');
xlim([86 96]);
ylim([0, 20]);
legend('extensive','intensive','GE','interpreter','latex','location','northwest')
set(gca,'FontSize',12);

ah3 = axes('Parent',fig,'Units','normalized','Position',[0.6916 0.150 0.2134 0.7800]);
plot(year, g_GDP_unbank.*100, '-b' , 'LineWidth', 2 );
hold on
plot(year, g_GDP_bank.*100, '--k' , 'LineWidth', 2 );

title( 'C. Growth accounting by market', 'FontSize',15,'Interpreter','Latex');
xlabel('year', 'FontSize',12,'Interpreter','Latex');
ylabel('percent change in GDP (\%)', 'FontSize',12,'Interpreter','Latex');
ylim([0,30]);
yticks(0:10:30)
xlim([86 96]);
legend('without branch in 86','with branch in 86','interpreter','latex','location','northwest')
set(gca,'FontSize',12);